{mtemplate '_header_base'}
{if !empty($_W['deam_food']['manage']['uid'])}
<nav class="dm-navbar">
	<div class="logo">
		<img src="{if empty($settings['login_logo'])}../addons/deam_food/icon.jpg{else}{media $settings['login_logo']}{/if}">
	</div>
	<ul>
		{loop $frams $fram}

		<li class="{$fram['active']}">
	        <a href="{$fram['href']}">
	            <i class="{$fram['icon']}"></i>
	            <span class="nav-label">{$fram['title']}</span>
	        </a>
	    </li>
	    {/loop}
	</ul>
</nav>
<!--topnav-->
<div class="dm-navbar-header">
	<ul>
		<span class="store-name">{$storeinfo['name']}</span>
		<li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">{$_W['deam_food']['manage']['username']}<span></span></a>
            <ul class="dropdown-menu">
                <!-- <li class="divider"></li> -->
                <li><a onclick="return confirm('确定退出登录？');return false;" href="{php echo manage_url(array('r'=>'user','ac'=>'logout'))}"> 退出登录</a></li>
            </ul>
        </li>
	</ul>
</div>

{/if}